package com.gui.spi;

import java.util.ServiceLoader;

public class SpiTest {

    public static void main(String[] args) {
        ServiceLoader<ISearch> searches = ServiceLoader.load(ISearch.class);
        for (ISearch search : searches) {
            search.searchDoc("111");
        }
    }
}
